package com.example.enumdemo.method;

/**
 * Created by taoli on 2018/8/5.
 */
public enum  CustomMethodUserStatus {
    ENABLE("可用"),
    DISABLE("禁用");

    private final String descr;

    private CustomMethodUserStatus(String descr) {
        this.descr = descr;
    }

    public String getDescr(){
        return this.descr;
    }

    public static void main(String... args){
        for (CustomMethodUserStatus userStatus : CustomMethodUserStatus.values()){
            System.out.println(userStatus.toString() + ":" + userStatus.getDescr());
        }
    }
}
